package com.hucheng.seckill.service;

import com.hucheng.common.exception.EduException;
import com.hucheng.common.page.CommonPager;
import com.hucheng.seckill.query.SeckillGoodsQuery;
import com.hucheng.seckill.vo.SeckillGoodsVO;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-06-25
 * @Description: 秒杀商品接口
 **/
public interface SeckillGoodsService {
    CommonPager<SeckillGoodsVO> listByPage(SeckillGoodsQuery seckillGoodsQuery);

    SeckillGoodsVO getSeckillGoodsByGoodsId(Integer goodsId);

    void seckillGoods(Integer userId,Integer goodsId) throws EduException;

    void initSeckillGoods();

    void createSeckillOrder(Integer userId, SeckillGoodsVO seckillGoodsVO);

    Integer seckillResult(Integer userId,Integer goodsId);

}
